package march.finalmarch21.march01.plan2;

import march.finalmarch21.FlowBean;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class MarchReduce extends Reducer<FlowBean, NullWritable,FlowBean,NullWritable>  {
    @Override
    protected void reduce(FlowBean key, Iterable<NullWritable> values, Context context) throws IOException, InterruptedException {
        for (NullWritable value : values) {
            context.write(key,NullWritable.get());
        }

    }
}
